#!/bin/bash
program='ruoyi'
docker stop $program
docker rm $program
docker rmi $program
docker build -t ruoyi /root/ruoyi/
docker run   --name ruoyi   -d   --restart=always     -p 8082:8080 ruoyi